package com.bootcamp.s2_0922.ds._1004;

import java.util.LinkedHashSet;
import java.util.Set;
import java.util.TreeSet;

/**
 * @program: myClassCode
 * @description: a set datastructure
 * @author: Keyu Li
 * @create: 2021-10-04 16:43
 **/

public class Demo3_Set {
    public static void main(String[] args) {
        LinkedHashSet<Object> objects = new LinkedHashSet<>();

        TreeSet<String> treeSet = new TreeSet<>();

        Integer a = new Integer(12);
        Object o = new Object();
        System.out.println(o instanceof Object);
        System.out.println(a);
        System.out.println(a instanceof Integer);
    }
}
